package org.dromara.business.domain.vo;

import org.dromara.business.domain.ContentCategory;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.mybatis.core.vo.BaseVo;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 内容分区视图对象 t_content_category
 *
 * @author Hao Tong Xue
 * @date 2025-04-07
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ContentCategory.class)
public class ContentCategoryVo extends BaseVo {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 分区ID
     */
    @ExcelProperty(value = "分区ID")
    private Long id;

    /**
     * 名称
     */
    @ExcelProperty(value = "名称")
    private String categoryName;

    /**
     * 类型
     */
    @ExcelProperty(value = "类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "category_type")
    private Integer categoryType;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Integer orderBy;

    /**
     * 父级分区ID(顶级分区为NULL)
     */
    @ExcelProperty(value = "父级分区ID(顶级分区为NULL)")
    private Long parentId;

    /**
     * 层级深度(1-一级,2-二级...)
     */
    @ExcelProperty(value = "层级深度(1-一级,2-二级...)")
    private Integer level;

    /**
     * 是否热门
     */
    @ExcelProperty(value = "是否热门", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_yes_no")
    private String hotStatus;

    /**
     * 内容数量
     */
    @ExcelProperty(value = "内容数量")
    private Integer contentCount;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
